module.exports = (req, res, next) => {
  if (!req.session['username']) {
    res.redirect('/admin/login?type=2')
  } else {
    next()
  }
}

